export class UserError extends Error {
  constructor(code, message, data = null) {
    super(message);
    this.name = 'UserError';
    this.code = code;
    this.data = data;
  }
}